fix noreturn booboos. (#1176)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 11 Sep 2023 00:01:46 +0000 (18:01 -0600)
committerGitHub <noreply@github.com>
Mon, 11 Sep 2023 00:01:46 +0000 (18:01 -0600)
* fix warning: function declared ‘noreturn’ has a ‘return’ statement

* geez, another booboo using noreturn.

jeeps/jgpsutil.cc
unicsv.cc

index a462201af4a300aa049c450540d1ce43f76633b2..68c5f926d0b3552a824710355baa8cbdd56c6d5c 100644 (file)
@@ -480,7 +480,6 @@ void GPS_Warning(const char* s)
 
   fprintf(stderr,"[FATAL] %s\n",s);
   exit(0);
-  return;
 }
 
 
index fd4ee9839d546f06734a15e3d87cca09e1ddc1d0..372fd016dd23e399a0288ee1ca862b31483ebe8f 100644 (file)
--- a/unicsv.cc
+++ b/unicsv.cc
@@ -1077,8 +1077,7 @@ UnicsvFormat::read()
 
 /* =========================================================================== */
 
-void
-[[notreturn]] UnicsvFormat::unicsv_fatal_outside(const Waypoint* wpt) const
+[[noreturn]] void UnicsvFormat::unicsv_fatal_outside(const Waypoint* wpt) const
 {
   *fout << "#####\n";
   fatal(MYNAME ": %s (%s) is outside of convertible area of grid \"%s\"!\n",